package main

import (
	"bpic/api"
	"bpic/config"
	"gitee.com/blue0121/gblue/route"
	"log"
)

func main() {
	log.Println("RootPath:", config.RootPath)
	router := route.NewHttpRouter()
	router.SetPort(10000)
	router.Get("/", api.Index)
	router.Get("/index", api.Index)
	router.Static("/static/", "/static/", api.Static())
	router.Static("/pic/", "/pic", api.Pic())
	router.ListenAndServe()
}
